package com.qf.day07.modifier.abs;

public class Demo01 {
    public static void main(String[] args) {

//        Animal animal = new Animal();

//        Cat cat = new Cat();
//        cat.eat();
//        cat.sleep();

        Animal animal1 = new Cat();
//        animal1.sleep();
//        animal1.eat();
        animal1.practise();

        System.out.println("=========================");
        animal1 = new Dog();
        animal1.practise();

        System.out.println("======================");
        animal1 = new Fish();
        animal1.practise();

    }
}
